<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2020/9/28
  Time: 0:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!--导航-->
<div class="container-fluid">
    <div class="row">
        <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse"
                            data-target="#example-navbar-collapse">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <img class="h" src="../../taofang/img/logo.png" alt="加载失败">
                </div>
                <div class="collapse navbar-collapse" id="example-navbar-collapse">
                    <!--向左对齐-->
                    <ul class="nav navbar-nav navbar-left">
                        <li><a href="/taofang/home/page.action">首页</a></li>
                        <li><a href="/taofang/home/togetherRent.action">合租</a></li>
                        <li><a href="/taofang/home/WholeRent.action">整租</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                推荐版块
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="/taofang/home/student.action">学生版</a></li>
                                <li><a href="/taofang/home/white.action">白领版</a></li>
                            </ul>
                        </li>
                        <c:if test="${register.identity=='3'}">
                        <li><a href="/taofang/agent/select.action">发布房源</a></li>
                        </c:if>
<%--                        <c:if test="${register.identity=='3'}">--%>
<%--                            <li><a href="/taofang/agent/select.action">发布房源</a></li>--%>
<%--                        </c:if>--%>
<%--                        <c:if test="${register.identity=='3'}">--%>
<%--                            <li><a href="/taofang/agent/select.action">发布房源</a></li>--%>
<%--                        </c:if>--%>
                    </ul>

<%--                    <form class="navbar-form navbar-left" role="search">--%>
<%--                        <div class="form-group">--%>
<%--                            <input type="text" class="form-control" placeholder="搜索房源">--%>
<%--                        </div>--%>
<%--                        <button type="submit" class="btn btn-default">搜索</button>--%>
<%--                    </form>--%>

                    <!--向右对齐-->
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="/taofang/home/exit.action" data-toggle="modal_zhuce" data-target="#myModal_zhuce">安全退出</a></li>
                        <li><a href="/taofang/<c:if test="${register.identity=='1'}">Tenant/info.action?tenantId=${tenant.id}</c:if><c:if test="${register.identity=='3'}">Landlord/info.action?landlordId=${landlord.id}</c:if><c:if test="${register.identity=='2'}">Agent/info.action?agentId=${agent.id}</c:if>
                                                "class="dropdown-toggle" data-toggle="dropdown_zhongxin">个人中心</a></li>
                        <li>
                            <img class="head" src="../../taofang/img/zly.png" alt="加载失败">
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</div>
